from django.urls import path
from .views import *

urlpatterns = [

    # 添加 获取 班级
    path("clbums/", ClasssView.as_view({"post": "add_classs", "get": "list_classs"})),

    # 获取 删除 修改 单个班级
    path("classs/<int:pk>/", ClasssView.as_view({"put": "up_classs", "delete":"del_classs", "get": "single_classs"})),

    # 获取一个班级下的所有学生
    path("classs/<int:pk>/", ClasssView.as_view({"get": "list_clbums"})),
]
